#ifndef ITEM_HH
#define ITEM_HH

#include <string>

// Item struct, representing collectible items
struct Item 
{
    std::string name;         // Item name
    std::string description;  // Item description
    unsigned bonusAttack;     // Attack bonus
    unsigned bonusDefense;    // Defense bonus
    unsigned bonusHealth;     // Health bonus

    // Constructor, initializes item attributes
    Item(const std::string& n, const std::string& desc, unsigned atk, unsigned def, unsigned hp)
        : name(n), description(desc), bonusAttack(atk), bonusDefense(def), bonusHealth(hp) {}

    // Convert to string
    std::string toString() const {
        return name + " (" + description + ")";
    }
};

#endif
